
import java.util.HashMap;
import java.util.Map;

public class mapw0648 {
    public static void main(String args0[]){
        int[] a={1,2,3,2,4,5,7,10,1,5,3,5,8,9,4,5,2,3};
        Map<Integer,Integer> map= new HashMap<Integer,Integer>();
            for(Integer i : a) {
                if (map.get(i) == null) {
                    map.put(i, 0);
                }
            }
            for(Integer i : map.keySet()) {
                System.out.print(i+" ");
            }
    }
}
